<template>
  <div class="admin-page-root">
    <div class="main-card">
      <h2>全校信件统计</h2>
      <div class="btn-group">
        <button class="btn main">导出统计报表</button>
        <button class="btn secondary">刷新数据</button>
      </div>
      <div class="stats-card">
        <div class="stat-item">
          <p>本月发送信件</p>
          <div class="stat-value">150</div>
          <p>较上月 <span style="color: #28a745;">+12%</span></p>
        </div>
        <div class="stat-item">
          <p>已读信件</p>
          <div class="stat-value">128</div>
          <p>已读率 <span style="color: #28a745;">85%</span></p>
        </div>
        <div class="stat-item">
          <p>未读信件</p>
          <div class="stat-value">22</div>
          <p>较上周 <span style="color: #dc3545;">-5%</span></p>
        </div>
        <div class="stat-item">
          <p>平均响应时间</p>
          <div class="stat-value">1.5天</div>
          <p>较上月 <span style="color: #28a745;">-0.5天</span></p>
        </div>
      </div>
      <div class="chart-container">
        <h4>信件发送趋势（近6个月）</h4>
        <div class="chart-placeholder">[图表占位]</div>
      </div>
      <div class="chart-container">
        <h4>各年级信件分布</h4>
        <div class="chart-placeholder">[图表占位]</div>
      </div>
    </div>
  </div>
</template>
<script>
export default { name: 'AdminLetterStat' }
</script>
<style scoped>
.admin-page-root { min-height: 100vh; background: #f6f8fa; padding: 32px 0 60px 0; }
.main-card { max-width: 800px; margin: 36px auto; background: #fff; border-radius: 16px; box-shadow: 0 4px 24px rgba(102,126,234,0.10); padding: 36px 32px 28px 32px; }
h2 { text-align: center; margin-bottom: 28px; color: #4a4a4a; }
.btn-group { display: flex; gap: 18px; margin-bottom: 24px; justify-content: center; }
.btn { padding: 10px 28px; border: none; border-radius: 22px; font-size: 15px; font-weight: 500; cursor: pointer; transition: background 0.2s, box-shadow 0.2s; }
.btn.main { background: linear-gradient(90deg, #667eea 0%, #764ba2 100%); color: #fff; box-shadow: 0 2px 8px rgba(102,126,234,0.10); }
.btn.main:hover { background: linear-gradient(90deg, #5a67d8 0%, #6b46c1 100%); }
.btn.secondary { background: #f0f1f5; color: #666; }
.btn.secondary:hover { background: #e0e7ef; }
.stats-card { display: flex; flex-wrap: wrap; gap: 20px; margin-bottom: 20px; }
.stat-item { flex: 1; min-width: 180px; background-color: #f5f7fa; padding: 20px; border-radius: 8px; text-align: center; }
.stat-value { font-size: 24px; font-weight: bold; margin: 10px 0; }
.chart-container { background-color: #fff; padding: 20px; border-radius: 8px; box-shadow: 0 0 10px rgba(0,0,0,0.05); margin-bottom: 20px; margin-top: 18px; }
.chart-container h4 { margin-bottom: 12px; color: #555; }
.chart-placeholder { background: #e6eaf7; color: #888; border-radius: 8px; height: 120px; display: flex; align-items: center; justify-content: center; font-size: 16px; }
</style> 